package com.hu.dubbo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.dubbo.config.annotation.Reference;
import com.hu.inter.IUserService;

import cn.hu.user.model.User;

@RestController
@RequestMapping("/user")
public class UserController {
	
	@Reference
	private IUserService userService;
 
	@RequestMapping("/int_getUserId")
	public String getUser(@RequestParam(required=false) String userId){
		System.out.println("12");
		  String aString = userService.getUser(userId).toString();
		System.out.println(aString);
		return aString;
	}

}

